package com.qs.core.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the gen_lookup_type_mst database table.
 * 
 */
@Entity
@Table(name="gen_lookup_type_mst")
public class GenLookupTypeMst implements Serializable {
	private static final long serialVersionUID = 1L;
	private String lookupTypeId;
	private String activeFlag;
	private String createdBy;
	private Date createdDt;
	private String description;
	private String updatedBy;
	private Date updatedDt;
	private List<GenInsuranceProviderMst> genInsuranceProviderMsts;
	private List<GenLookupCodeMst> genLookupCodeMsts;

    public GenLookupTypeMst() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="LOOKUP_TYPE_ID")
	public String getLookupTypeId() {
		return this.lookupTypeId;
	}

	public void setLookupTypeId(String lookupTypeId) {
		this.lookupTypeId = lookupTypeId;
	}


	@Column(name="ACTIVE_FLAG")
	public String getActiveFlag() {
		return this.activeFlag;
	}

	public void setActiveFlag(String activeFlag) {
		this.activeFlag = activeFlag;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="DESCRIPTION")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	//bi-directional many-to-one association to GenInsuranceProviderMst
	@OneToMany(mappedBy="genLookupTypeMst", fetch=FetchType.EAGER)
	public List<GenInsuranceProviderMst> getGenInsuranceProviderMsts() {
		return this.genInsuranceProviderMsts;
	}

	public void setGenInsuranceProviderMsts(List<GenInsuranceProviderMst> genInsuranceProviderMsts) {
		this.genInsuranceProviderMsts = genInsuranceProviderMsts;
	}
	

	//bi-directional many-to-one association to GenLookupCodeMst
	@OneToMany(mappedBy="genLookupTypeMst", fetch=FetchType.EAGER)
	public List<GenLookupCodeMst> getGenLookupCodeMsts() {
		return this.genLookupCodeMsts;
	}

	public void setGenLookupCodeMsts(List<GenLookupCodeMst> genLookupCodeMsts) {
		this.genLookupCodeMsts = genLookupCodeMsts;
	}
	
}